package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("monthly_add_day")
@NoArgsConstructor
public class MonthlyAddDay implements Serializable {

    private static final long serialVersionUID = 1L;

    public MonthlyAddDay(String orderId, Integer day, String reason, Integer adminUserId, Integer depId, String status) {
        this.orderId = orderId;
        this.day = day;
        this.reason = reason;
        this.adminUserId = adminUserId;
        this.depId = depId;
        this.status = status;
    }

    /**
     * 申请延长表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应包月订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 天数
     */
    @TableField("day")
    private Integer day;

    /**
     * 理由
     */
    @TableField("reason")
    private String reason;

    /**
     * 申请人id
     */
    @TableField("admin_user_id")
    private Integer adminUserId;

    /**
     * 申请人部门id
     */
    @TableField("dep_id")
    private Integer depId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 状态(经理/管理/通过/拒绝)
     */
    @TableField("status")
    private String status;


}
